Skip to content

Pass tool manifest path on to cargo metadata command#156

Merged
burrbull merged 2 commits into
rust-embedded:masterfrom
nerwalt:fix-objcopy-manifest-path
Apr 20, 2025
Merged

Pass tool manifest path on to cargo metadata command#156
burrbull merged 2 commits into
rust-embedded:masterfrom
nerwalt:fix-objcopy-manifest-path

Conversation

@nerwalt
Copy link
Copy Markdown
Contributor

@nerwalt nerwalt commented Apr 19, 2025

This seems to fix an issue with running cargo objcopy (and likely other binutils) outside of a project directory. For example, when I run cargo objcopy outside of a project directory, I get the following error:

cargo metadata` exited with an error: error: could not find `Cargo.toml` in `<some path>` or any parent directory`

Passing the manifest-path along to the MetadataCommand fixes this, and seems to align the behavior of binutils with cargo build.

@nerwalt nerwalt requested a review from a team as a code owner April 19, 2025 19:46
Emilgardis
Emilgardis previously approved these changes Apr 20, 2025
Copy link
Copy Markdown
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Could you add an entry to the changelog please :)

@burrbull burrbull added this pull request to the merge queue Apr 20, 2025
Merged via the queue into rust-embedded:master with commit 3a79306 Apr 20, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants